<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>网站基本设置</title>
<link rel="shortcut icon" href="images/favicon.ico" />
<link rel="stylesheet" href="css/admin/talent2.css" />
</head>
<body>
	<%@include file="../common/header.jsp"%>
	<%@include file="../common/mainLeft.jsp"%>
	<div class="pageIndex">
		<header class="headerInder">
			<span style="padding-left: 20px;">位置：首页 > 人才招聘</span>
		</header>
		<form method="post" class="from">
			<p style="overflow: hidden; margin-top: 30px;">
				<label style="float: left;">标题：</label>
				<input type='text' name="title" class="keyword" style="height: 30px;background:none;border:1px solid gray;" />
			</p>
			<p style="overflow: hidden; margin-top: 30px;">
				<label style="float: left;">职位描述：</label>
			</p>
			<div style="padding-left:100px;">
				<script id="container" id="detail" name="detail" type="text/plain" style="width: 700px; height: 280px;"></script>
			</div>
			<p>
				<input type="button" class="talentSubmit hhhh" value="确定提交" />
			</p>
		</form>
	</div>
</body>
<script type="text/javascript" src="js/admin/news.js"></script>
<!-- ueditor配置文件 -->
<script type="text/javascript" src="ueditor/ueditor.config2.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="ueditor/ueditor.all.js"></script>
<!-- 实例化编辑器 -->
<script type="text/javascript">
	var ue = UE.getEditor('container', {
		autoHeight : false
	});
</script>
<script type="text/javascript">
$(function(){
	$(".talentSubmit").click(function() {
		var ue = UE.getEditor('container');
		var detail = UE.getEditor('container').getContent();
		if($('.keyword').val()==''){
			alert("标题不能为空");
			return;
		}
		if(detail == ''){
			alert("职位描述不能为空");
			return;
		}
		alert("添加成功");
		$(".from").attr("action","talentAdd.htm").submit();
	})
})
</script>
</html>
